package com.shopRedis.feign;

import java.util.List;
import java.util.concurrent.TimeUnit;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface RedisFeign {


    @RequestMapping("opsForValue/get.api")
    public String opsForValueGet(@RequestParam(value = "key") String key);

    @RequestMapping("opsForValue/set.api")
    public boolean opsForvalueSet(@RequestParam(value = "key") String key,@RequestParam(value = "value") String value,@RequestParam(value = "time")Integer time);
    @RequestMapping("opsForValue/append.api")
    public long opsForvalueAppend(@RequestParam(value = "key")String key,@RequestParam(value = "value")String value);
    @RequestMapping("opsForValue/getByKeys.api")
    public List<String> multiGet(@RequestParam(value = "list")String[] list);
    @RequestMapping("opsForValue/getAndSet.api")
    public String  getAndSet(@RequestParam(value = "key") String key,@RequestParam(value = "value") String value);

    @RequestMapping("opsForValue/getStringLength.api")
    public Long  getStringLength(@RequestParam(value = "key")String key);
    @RequestMapping("deleteKey.api")
    public boolean  deleteKey(@RequestParam(value = "key")String key);
}
